package com.jg.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 供应商表
 * </p>
 *
 * @author 晓东√
 * @since 2025-09-19 11:18
 */
@Getter
@Setter
@ToString
@TableName("suppliers")
@Schema(name = "Suppliers", description = "供应商表")
public class Suppliers extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 供应商唯一标识符
     */
    @Schema(description = "供应商唯一标识符")
    @TableId(value = "supplier_id", type = IdType.AUTO)
    private Integer supplierId;

    /**
     * 供应商名称
     */
    @TableField("supplier_name")
    @Schema(description = "供应商名称")
    private String supplierName;

    /**
     * 联系人姓名
     */
    @TableField("contact_name")
    @Schema(description = "联系人姓名")
    private String contactName;

    /**
     * 联系电话
     */
    @TableField("contact_phone")
    @Schema(description = "联系电话")
    private String contactPhone;

    /**
     * 登录密码
     */
    @TableField("password")
    @Schema(description = "登录密码")
    private String password;

    /**
     * 电子邮箱地址
     */
    @TableField("email")
    @Schema(description = "电子邮箱地址")
    private String email;

    /**
     * 地址
     */
    @TableField("address")
    @Schema(description = "地址")
    private String address;
}
